import psutil


def get():
    # 获取CPU使用情况
    cpu_percent = psutil.cpu_percent()
    cpu_times = psutil.cpu_times()
    # 获取内存使用情况
    memory_total = psutil.virtual_memory().total
    memory_used = psutil.virtual_memory().used
    memory_percent = psutil.virtual_memory().percent
    # 获取磁盘使用情况
    disk_partitions = psutil.disk_partitions()
    disk_usage = psutil.disk_usage('/')
    # 获取网络使用情况
    net_io_counters = psutil.net_io_counters()
    return (
            "," + str(cpu_percent) +
            "," + str(memory_percent) +
            "," + str(disk_usage.percent)
    )
